<?php
/**
 * Desc:
 * User: aniu
 * Date: 2021/1/2
 * Time: 下午12:42
 * @return
 */

namespace App\Http\Bean;

use Swoft\Bean\Annotation\Mapping\Bean;

/**
 * @Bean()
 */
class TestBean
{


    private $name = 'aniu';

    public function __construct()
    {
        echo 'aniu\n';
    }

    public function setName(string $name)
    {
        $this->name = $name;
        return $this;
    }


    public function getName():string
    {
        return $this->name;
    }
}
